package interfaces.menu.joinGame.filters;

import interfaces.menu.joinGame.gamesTable.GamesTableWidget;
import interfaces.options.ComboBoxOptionWidget;

public class ShowFullFilter extends TripleFilter {
	
	public ShowFullFilter(ComboBoxOptionWidget filterWidget) {
		super(filterWidget);
	}
	
	@Override
	protected boolean filterDontShow(GamesTableWidget widget) {
		return widget.getMaxPlayers() != widget.getPlayers().size();
	}
	
	@Override
	protected boolean filterShowOnly(GamesTableWidget widget) {
		return widget.getMaxPlayers() == widget.getPlayers().size();
	}
}